/**
 * 
 */
package pt.mleiria.sAction.hibernate;

import java.util.Set;

/**
 * @author Manuel
 *
 */
public class Sector {
	private long id;
	private String name;
	private Set<Stock> stockSet;
	
	
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		StringBuffer sb = new StringBuffer();
		sb.append("[id:" + id + ";");
		sb.append("name:" + name + ";");
		sb.append("Set<Stock>:" + stockSet + "]");
		return sb.toString();
	}
	/**
	 * @return the stockSet
	 */
	public Set<Stock> getStockSet() {
		return stockSet;
	}
	/**
	 * @param stockSet the stockSet to set
	 */
	public void setStockSet(Set<Stock> stockSet) {
		this.stockSet = stockSet;
	}
	/**
	 * @return the id
	 */
	public long getId() {
		return id;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(long id) {
		this.id = id;
	}
	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}
	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}
	

}
